#include <stdio.h>
#include <string.h>

int main()
{
    static char to_vofa[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0x7f};
    float send_data[3] = { 2.3, 15.2, 200.5 };
    memcpy(to_vofa, (char *)send_data, sizeof(send_data));
    for (int i = 0; i < sizeof(to_vofa); ++i) {
        printf("to_vofa[%d] = %c\n", i, to_vofa[i]);
    }
    memset(send_data, 0, sizeof(send_data));
    memcpy(send_data, (float *)to_vofa, sizeof(to_vofa) - 4);
    for (int i = 0; i < 3; ++i) {
        printf("send_data[%d] = %f\n", i, send_data[i]);
    }

    return 0;
}